package com.cspg.ssss.job;

import com.cspg.ssss.service.ScoreStatisticsService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 评分统计数据更新Job
 */
public class ScoreStatisticsJob extends QuartzJobBean {
    private static final Logger log = LoggerFactory.getLogger(ScoreStatisticsJob.class);

    @Autowired
    ScoreStatisticsService scoreStatisticsService;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("start ScoreStatisticsJob ......++ ");
        //更新单位评分统计数据
//        scoreStatisticsService.updateScoreStatisticsList(0);
        //更新部门评分统计数据
//        scoreStatisticsService.updateScoreStatisticsList(1);
        log.info("end ScoreStatisticsJob ......++ ");
    }
}
